<template>
  <div class="formPlan mt-80" :class="[setSize == 1 ? 'usual' : 'large']">
    <div
      style="
        background: #fff;
        position: fixed;
        right: 0;
        bottom: 150px;
        padding: 0 6px;
        z-index: 2;
      "
    >
      <ul>
        <li
          class="cursor-pointer"
          @click="handleControl('restore')"
          style="padding: 0 5px"
        >
          <div style="border-bottom: 1px solid #d3d3d3; padding-top: 10px">
            <i class="el-icon-refresh-left" size="16"></i>
          </div>
        </li>
        <li
          class="cursor-pointer"
          @click="handleControl('enlarge')"
          style="padding: 0 5px"
        >
          <div style="border-bottom: 1px solid #d3d3d3; padding-top: 10px">
            <i class="el-icon-plus" size="16"></i>
          </div>
        </li>
        <li
          class="cursor-pointer"
          @click="handleControl('norrow')"
          style="padding: 0 5px"
        >
          <div style="border-bottom: 1px solid #d3d3d3; padding-top: 10px">
            <i class="el-icon-minus" size="16"></i>
          </div>
        </li>
        <li>
          <div
            style="
              background: #fff;
              position: fixed;
              right: 0;
              bottom: 10px;
              z-index: 2;
            "
          >
            <!-- 前一行程 -->
            <ul
              class="d-flex cursor-pointer"
              style="padding: 10px"
              @click="handlePre"
            >
              <li class="d-flex">
                <i class="el-icon-back"></i>
                <div>{{ $t("langName.langName28") }}</div>
              </li>
            </ul>
            <!-- 后一行程 -->
            <ul
              class="d-flex cursor-pointer"
              style="padding: 10px"
              @click="handleNext"
            >
              <li class="d-flex">
                <i class="el-icon-right"></i>
                <div>{{ $t("langName.langName29") }}</div>
              </li>
            </ul>
          </div>
        </li>
      </ul>
    </div>
    <el-container style="position: relative">
      <div class="aside-bus-info" v-if="isSchemeList">
        <!-- 搜索 -->
        <el-card class="box-card mb-10">
          <div class="d-flex">
            <div style="width: 100%">
              <div class="current-local">
                <el-input
                  v-model.trim="inputStart"
                  :placeholder="$t('langName.langName21')"
                  clearable
                  class="input-lineNo"
                  @input="handleStartAddress"
                  id="pac-startInput"
                ></el-input>
              </div>
              <div class="three-dotted"></div>
              <div class="destination">
                <el-input
                  v-model.trim="inputEnd"
                  :placeholder="$t('langName.langName22')"
                  clearable
                  class="input-lineNo"
                  @input="handleEndAddress"
                  id="pac-endInput"
                ></el-input>
              </div>
              <el-button
                :type="setTheme == 1 ? 'primary' : 'danger'"
                class="btn"
                @click="getDistance"
              >
                {{ $t("langName.langName24") }}</el-button
              >
            </div>
          </div>
        </el-card>
        <!-- 方案列表 -->
        <div
          class="localInfo border-radius-20 route-planning-box"
          style="position: relative"
          v-if="isRouteList"
        >
          <!-- 到站信息 -->
          <el-tabs
            v-model="activeName"
            @tab-click="handleClick"
            style="width: 100%"
          >
            <el-tab-pane label="时间短" name="first">
              <div
                class="tr-item"
                @click="handleToDetail(item)"
                v-for="(item, index) in ByBusTimesList"
                :key="index"
              >
                <div class="time-Style">
                  {{ item.sumTravelTime }}{{ $t("langName.langName41") }}&nbsp;&nbsp;
                  <img src="@/assets/images/work.png" />{{
                    item.sumWalkDistance
                  }}米
                </div>
                <div class="route-style">
                  <span v-for="(i, index) in item.routes" :key="index">{{
                    i[0].routename
                  }}</span>
                </div>
                <div class="describe-style">
                  {{ item.planName }}
                </div>
              </div>
            </el-tab-pane>
            <el-tab-pane label="少步行" name="second">
              <div
                class="tr-item"
                @click="handleToDetail(item)"
                v-for="(item, index) in ByWalkDistanceList"
                :key="index"
              >
                <div class="time-Style">
                  {{ item.sumTravelTime }}{{ $t("langName.langName41") }}&nbsp;&nbsp;
                  <img src="@/assets/images/work.png" />{{
                    item.sumWalkDistance
                  }}米
                </div>
                <div class="route-style">
                  <span v-for="(i, index) in item.routes" :key="index">{{
                    i[0].routename
                  }}</span>
                </div>
                <div class="describe-style">
                  {{ item.planName }}
                </div>
              </div>
            </el-tab-pane>
            <el-tab-pane label="少换乘" name="third">
              <div
                class="tr-item"
                @click="handleToDetail(item)"
                v-for="(item, index) in ByTravelTimeList"
                :key="index"
              >
                <div class="time-Style">
                  {{ item.sumTravelTime }}{{ $t("langName.langName41") }}&nbsp;&nbsp;
                  <img src="@/assets/images/work.png" />{{
                    item.sumWalkDistance
                  }}米
                </div>
                <div class="route-style">
                  <span v-for="(i, index) in item.routes" :key="index">{{
                    i[0].routename
                  }}</span>
                </div>
                <div class="describe-style">
                  {{ item.planName }}
                </div>
              </div>
            </el-tab-pane>
          </el-tabs>
        </div>
      </div>

      <!-- 出行详情 -->
      <div class="aside-bus-info" v-else>
        <div
          class="localInfo border-radius-20 route-planning-box h-100"
          style="position: relative"
        >
          <div
            class="left-route-planning"
          >
            <div>
              <div class="tr-item tr-fixed">
             
                  <div class="mr-10" @click="handleBcak">
                    <img src="@/assets/images/back.png" alt="" width="25px" />
                  </div>
                  <div class="time-Style">
                    {{planDel.sumTravelTime}}{{ $t("langName.langName41") }}&nbsp;&nbsp;
                    <img src="@/assets/images/work.png" />{{planDel.sumWalkDistance}}米
                  </div>
             

                 <div class="route-style">
                  <span v-for="(i, index) in planDel.routes" :key="index">{{
                    i[0].routename
                  }}</span>
                 </div>
                <div class="describe-style">
                  {{planDel.planName}}
                </div>
              </div>
            </div>

            <!-- 我的位置 planDel-->
            <div class="del" v-if="resultRouteLists.length">
              <div class="bus-stop-name mb-10 mt-100">
                <div class="blue-cicle"></div>
                <div class="bus-stop-name ml-40">
                  {{ $t("langName.langName47") }}
                </div>
              </div>

              <ul v-for="(item, index) in resultRouteLists" :key="index">
                <!-- 步行 -->
                <li class="bus-stop-name" v-if="index == 0">
                  <div class="dotted-solid"></div>
                  <div class="stated-num ml-40">
                    <span class="text-gray"
                      >{{ $t("langName.langName48")
                      }}{{ item[0].distance.text }}（{{
                        $t("langName.langName49")
                      }}{{ item[0].duration }}）</span
                    >
                  </div>
                </li>
                <!-- 换成公交 -->
                <li class="bus-stop-name mb-10" v-if="index != 0">
                  <div class="car">
                    <!-- 公交 -->
                    <div v-if="index % 2 != 0">
                      <!-- 开始站点 -->
                      <div class="d-flex">
                        <div class="bus-flag">BUS</div>
                        <div class="ml-20">
                          <div class="mb-10">
                            {{ item[0].stationname }}
                          </div>
                          <div class="text-gray fz-12">
                            {{ item[0].routeid }}
                          </div>
                        </div>
                      </div>
                      <!-- 中间站-->
                      <div class="d-flex">
                        <div>
                          <div
                            class="bus-line"
                            style="margin-left: 18px"
                            :style="{
                              height: item[0].isShowStation
                                ? item[0].stationLength + 'px'
                                : '90px',
                            }"
                          ></div>
                        </div>
                        <div
                          class="ml-40"
                          style="margin-bottom: 30px"
                          @click="
                            item[0].isShowStation = !item[0].isShowStation
                          "
                        >
                          <div class="stated-num text-gray cursor-pointer">
                            <span
                              >{{ $t("langName.langName51") }}
                              {{ item.newData.length + 1
                              }}{{ $t("langName.langName40") }}</span
                            >
                            <!-- （34分钟） -->
                            <div class="arrow-size ml-20">
                              <img
                                :src="
                                  item[0].isShowStation
                                    ? require('@/assets/images/shangjiantou.png')
                                    : require('@/assets/images/xiajiantou.png')
                                "
                              />
                            </div>
                          </div>

                          <div v-if="item[0].isShowStation">
                            <!-- .splice(1,item.length-2) -->
                            <div
                              v-for="(i, ind) in item.newData"
                              :key="ind"
                              style="margin-top: 10px"
                            >
                              {{ i.stationname }}
                            </div>
                          </div>
                        </div>
                      </div>
                      <!-- 结束站点 -->
                      <div class="d-flex">
                        <div class="end-cicle"></div>
                        <div class="ml-20">
                          {{ item[item.length - 1].stationname }}
                        </div>
                      </div>
                    </div>
                    <!-- 步行 -->
                    <div class="d-flex" v-if="index % 2 == 0">
                      <div style="width: 40px">
                        <div class="dotted-solid"></div>
                      </div>
                      <div class="stated-num">
                        <span class="text-gray"
                          >{{ $t("langName.langName48")
                          }}{{ item[0].distance.text }}（{{
                            $t("langName.langName49")
                          }}{{ item[0].duration }}）</span
                        >
                      </div>
                    </div>
                  </div>
                </li>
              </ul>
              <!-- 结束位置 -->
              <div class="d-flex mb-10">
                <div style="height: 20px; height: 20px">
                  <div class="blue-cicle"></div>
                </div>

                <div class="ml-20">
                  {{ endAddress }}
                </div>
              </div>
            </div>
          </div>
          <!--  v-else -->
          <div style="text-align: center; margin: auto">
            <el-empty :description="$t('langName.langName46')"></el-empty>
          </div>
        </div>
      </div>
      <!-- 地图 -->
      <div class="route-map">
        <div id="map"></div>
      </div>
    </el-container>
  </div>
</template>
<script>
import { mapState } from "vuex";
import { postRoutePlanning, getDistance } from "@/api/collect";
import { getGoogleAddress, getGoogleLngAntLat, getzw } from "@/utils/location";

export default {
  name: "formPlan",
  data() {
    return {
      activeName: "first",
      map: null,
      inputStart: "", //输入起始地址
      inputEnd: "", //输入终点地址
      startlngAndLat: "", //转换后的起始经纬度
      endlngAndLat: "", //转换后的终点经纬度
      // resultRouteLists: [
      //   [
      //     {
      //       duration: "1分钟",
      //       start_location: {
      //         lat: 104.0820252,
      //         lng: 30.7378317,
      //       },
      //       distance: '{"text":"1 米","value":0}',
      //       travel_mode: null,
      //       html_instructions: null,
      //       end_location: {
      //         lat: 104.0820252,
      //         lng: 30.7378317,
      //       },
      //       maneuver: null,
      //       polyline: null,
      //       steps: [
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.0820252,
      //             lng: 30.7378317,
      //           },
      //           distance: '{"text":"1 米","value":0}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.0820252,
      //             lng: 30.7378317,
      //           },
      //           maneuver: null,
      //           polyline: null,
      //           steps: null,
      //         },
      //       ],
      //     },
      //   ],
      //   [
      //     {
      //       stationid: "416",
      //       endStationname: null,
      //       routeid: "15",
      //       stationno: "998316",
      //       stationname: "凤凰山公园",
      //       stationtypename: "主站上客站",
      //       longitude: 104.082026,
      //       latitude: 30.737816,
      //       lngAndLat: null,
      //       rundirection: "3",
      //       dualserialid: 1,
      //     },
      //     {
      //       stationid: "417",
      //       endStationname: null,
      //       routeid: "15",
      //       stationno: "998317",
      //       stationname: "北彭立交",
      //       stationtypename: "中间站",
      //       longitude: 104.0623,
      //       latitude: 30.724876,
      //       lngAndLat: null,
      //       rundirection: "3",
      //       dualserialid: 2,
      //     },
      //     {
      //       stationid: "10090519105646750000",
      //       endStationname: null,
      //       routeid: "15",
      //       stationno: "30823",
      //       stationname: "长和路",
      //       stationtypename: "中间站",
      //       longitude: 104.04154,
      //       latitude: 30.71564,
      //       lngAndLat: null,
      //       rundirection: "3",
      //       dualserialid: 3,
      //     },
      //   ],
      //   [
      //     {
      //       duration: "1分钟",
      //       start_location: {
      //         lat: 104.0414483,
      //         lng: 30.715527,
      //       },
      //       distance: '{"text":"1 米","value":0}',
      //       travel_mode: null,
      //       html_instructions: null,
      //       end_location: {
      //         lat: 104.0414483,
      //         lng: 30.715527,
      //       },
      //       maneuver: null,
      //       polyline: null,
      //       steps: [
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.0414483,
      //             lng: 30.715527,
      //           },
      //           distance: '{"text":"1 米","value":0}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.0414483,
      //             lng: 30.715527,
      //           },
      //           maneuver: null,
      //           polyline: null,
      //           steps: null,
      //         },
      //       ],
      //     },
      //   ],
      //   [
      //     {
      //       stationid: "10090519105646750000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "30823",
      //       stationname: "长和路",
      //       stationtypename: "中间站",
      //       longitude: 104.04154,
      //       latitude: 30.71564,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 114,
      //     },
      //     {
      //       stationid: "10090518171433234000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "30800",
      //       stationname: "KOLFIE KERANIO W",
      //       stationtypename: "中间站",
      //       longitude: 104.039352,
      //       latitude: 30.707378,
      //       lngAndLat: null,
      //       rundirection: "2",
      //       dualserialid: 115,
      //     },
      //     {
      //       stationid: "55130329084635538003",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "31578",
      //       stationname: "泉水西路口",
      //       stationtypename: "中间站",
      //       longitude: 104.052501,
      //       latitude: 30.72542,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 116,
      //     },
      //     {
      //       stationid: "55130329084642132000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "31579",
      //       stationname: "WAS",
      //       stationtypename: "中间站",
      //       longitude: 104.048629,
      //       latitude: 30.725486,
      //       lngAndLat: null,
      //       rundirection: "2",
      //       dualserialid: 117,
      //     },
      //     {
      //       stationid: "55130329083314788000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "31577",
      //       stationname: "泉水东路口",
      //       stationtypename: "中间站",
      //       longitude: 104.05799,
      //       latitude: 30.723926,
      //       lngAndLat: null,
      //       rundirection: "2",
      //       dualserialid: 118,
      //     },
      //     {
      //       stationid: "55150520095343923017",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "31970",
      //       stationname: "SEBATEGNA",
      //       stationtypename: "中间站",
      //       longitude: 104.006426,
      //       latitude: 30.704545,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 119,
      //     },
      //     {
      //       stationid: "10090511153635984000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "30108",
      //       stationname: "昭觉横路",
      //       stationtypename: "中间站",
      //       longitude: 104.09839,
      //       latitude: 30.707809,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 129,
      //     },
      //     {
      //       stationid: "10090511153227390000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "30107",
      //       stationname: "99 MAZORIYA",
      //       stationtypename: "中间站",
      //       longitude: 104.09928,
      //       latitude: 30.707145,
      //       lngAndLat: null,
      //       rundirection: "2",
      //       dualserialid: 130,
      //     },
      //     {
      //       stationid: "10090713171604609000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "31052",
      //       stationname: "昭觉寺公交站（下客）",
      //       stationtypename: "副站下客站",
      //       longitude: 104.100516,
      //       latitude: 30.708231,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 133,
      //     },
      //     {
      //       stationid: "10090707145900296000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "30966",
      //       stationname: "SEBETA MECHERESH",
      //       stationtypename: "副站上客站",
      //       longitude: 104.101002,
      //       latitude: 30.708091,
      //       lngAndLat: null,
      //       rundirection: "2",
      //       dualserialid: 134,
      //     },
      //     {
      //       stationid: "55110517113611125107",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "31314",
      //       stationname: "香榭里",
      //       stationtypename: "中间站",
      //       longitude: 104.038397,
      //       latitude: 30.709092,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 135,
      //     },
      //     {
      //       stationid: "10090518152045406000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "30743",
      //       stationname: "AYER TENA DAMOT",
      //       stationtypename: "中间站",
      //       longitude: 104.037357,
      //       latitude: 30.712392,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 136,
      //     },
      //     {
      //       stationid: "55180607165838773015",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "32372",
      //       stationname: "WELETE MARIAM ME",
      //       stationtypename: "中间站",
      //       longitude: 104.045178,
      //       latitude: 30.723345,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 137,
      //     },
      //     {
      //       stationid: "55091026100321765000",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "40088",
      //       stationname: "茶店子公交站",
      //       stationtypename: "主站上客站",
      //       longitude: 104.009161,
      //       latitude: 30.707512,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 138,
      //     },
      //     {
      //       stationid: "55130627100820042943",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "31635",
      //       stationname: "育仁公交站",
      //       stationtypename: "中间站",
      //       longitude: 104.01417,
      //       latitude: 30.703003,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 142,
      //     },
      //     {
      //       stationid: "55130809144807430437",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "31676",
      //       stationname: "ABNET DEBUB HOTE",
      //       stationtypename: "中间站",
      //       longitude: 104.014178,
      //       latitude: 30.703251,
      //       lngAndLat: null,
      //       rundirection: "2",
      //       dualserialid: 143,
      //     },
      //     {
      //       stationid: "55140811101156554020",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "31881",
      //       stationname: "育苗路西",
      //       stationtypename: "中间站",
      //       longitude: 104.016577,
      //       latitude: 30.70106,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 144,
      //     },
      //     {
      //       stationid: "55200603112935626217",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "32730",
      //       stationname: "COCA COLA SQUARE",
      //       stationtypename: "中间站",
      //       longitude: 104.016827,
      //       latitude: 30.701208,
      //       lngAndLat: null,
      //       rundirection: "2",
      //       dualserialid: 145,
      //     },
      //     {
      //       stationid: "55200603112953745092",
      //       endStationname: null,
      //       routeid: "25",
      //       stationno: "32728",
      //       stationname: "育英路",
      //       stationtypename: "中间站",
      //       longitude: 104.018762,
      //       latitude: 30.700081,
      //       lngAndLat: null,
      //       rundirection: "1",
      //       dualserialid: 146,
      //     },
      //   ],
      //   [
      //     {
      //       duration: "39分钟",
      //       start_location: {
      //         lat: 104.0414483,
      //         lng: 30.715527,
      //       },
      //       distance: '{"text":"3.0 公里","value":3033}',
      //       travel_mode: null,
      //       html_instructions: null,
      //       end_location: {
      //         lat: 104.0414483,
      //         lng: 30.715527,
      //       },
      //       maneuver: null,
      //       polyline: null,
      //       steps: [
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.0414483,
      //             lng: 30.715527,
      //           },
      //           distance: '{"text":"25 米","value":25}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.0414483,
      //             lng: 30.715527,
      //           },
      //           maneuver: null,
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "3分钟",
      //           start_location: {
      //             lat: 104.0416599,
      //             lng: 30.7154,
      //           },
      //           distance: '{"text":"0.2 公里","value":220}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.0416599,
      //             lng: 30.7154,
      //           },
      //           maneuver: "turn-right",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.03988,
      //             lng: 30.71414,
      //           },
      //           distance: '{"text":"46 米","value":46}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.03988,
      //             lng: 30.71414,
      //           },
      //           maneuver: "turn-left",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "5分钟",
      //           start_location: {
      //             lat: 104.0401399,
      //             lng: 30.71379,
      //           },
      //           distance: '{"text":"0.4 公里","value":408}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.0401399,
      //             lng: 30.71379,
      //           },
      //           maneuver: "turn-right",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "20分钟",
      //           start_location: {
      //             lat: 104.03663,
      //             lng: 30.71171,
      //           },
      //           distance: '{"text":"1.6 公里","value":1615}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.03663,
      //             lng: 30.71171,
      //           },
      //           maneuver: null,
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.02235,
      //             lng: 30.70397,
      //           },
      //           distance: '{"text":"31 米","value":31}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.02235,
      //             lng: 30.70397,
      //           },
      //           maneuver: "turn-right",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "4分钟",
      //           start_location: {
      //             lat: 104.02216,
      //             lng: 30.7042,
      //           },
      //           distance: '{"text":"0.3 公里","value":258}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.02216,
      //             lng: 30.7042,
      //           },
      //           maneuver: "turn-left",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.02003,
      //             lng: 30.70277,
      //           },
      //           distance: '{"text":"12 米","value":12}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.02003,
      //             lng: 30.70277,
      //           },
      //           maneuver: "turn-right",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "2分钟",
      //           start_location: {
      //             lat: 104.01996,
      //             lng: 30.70286,
      //           },
      //           distance: '{"text":"0.2 公里","value":181}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.01996,
      //             lng: 30.70286,
      //           },
      //           maneuver: "turn-left",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.01849,
      //             lng: 30.70186,
      //           },
      //           distance: '{"text":"0.1 公里","value":128}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.01849,
      //             lng: 30.70186,
      //           },
      //           maneuver: "turn-left",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.01911,
      //             lng: 30.70084,
      //           },
      //           distance: '{"text":"27 米","value":27}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.01911,
      //             lng: 30.70084,
      //           },
      //           maneuver: "turn-right",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.01903,
      //             lng: 30.70061,
      //           },
      //           distance: '{"text":"29 米","value":29}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.01903,
      //             lng: 30.70061,
      //           },
      //           maneuver: "turn-right",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.01875,
      //             lng: 30.7005,
      //           },
      //           distance: '{"text":"7 米","value":7}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.01875,
      //             lng: 30.7005,
      //           },
      //           maneuver: "turn-left",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.01878,
      //             lng: 30.70044,
      //           },
      //           distance: '{"text":"18 米","value":18}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.01878,
      //             lng: 30.70044,
      //           },
      //           maneuver: "turn-right",
      //           polyline: null,
      //           steps: null,
      //         },
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.01862,
      //             lng: 30.70039,
      //           },
      //           distance: '{"text":"28 米","value":28}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.01862,
      //             lng: 30.70039,
      //           },
      //           maneuver: "turn-left",
      //           polyline: null,
      //           steps: null,
      //         },
      //       ],
      //     },
      //   ],
      //   [
      //     {
      //       stationid: "55200603112953745092",
      //       endStationname: null,
      //       routeid: "5",
      //       stationno: "32728",
      //       stationname: "育英路",
      //       stationtypename: "中间站",
      //       longitude: 104.018762,
      //       latitude: 30.700081,
      //       lngAndLat: null,
      //       rundirection: "3",
      //       dualserialid: 3,
      //     },
      //     {
      //       stationid: "413",
      //       endStationname: null,
      //       routeid: "5",
      //       stationno: "998313",
      //       stationname: "永安路",
      //       stationtypename: "中间站",
      //       longitude: 104.140482,
      //       latitude: 30.70223,
      //       lngAndLat: null,
      //       rundirection: "3",
      //       dualserialid: 4,
      //     },
      //     {
      //       stationid: "414",
      //       endStationname: null,
      //       routeid: "5",
      //       stationno: "998314",
      //       stationname: "大熊猫研究基地",
      //       stationtypename: "中间站",
      //       longitude: 104.162598,
      //       latitude: 30.70223,
      //       lngAndLat: null,
      //       rundirection: "3",
      //       dualserialid: 5,
      //     },
      //   ],
      //   [
      //     {
      //       duration: "1分钟",
      //       start_location: {
      //         lat: 104.1625808,
      //         lng: 30.7022242,
      //       },
      //       distance: '{"text":"1 米","value":0}',
      //       travel_mode: null,
      //       html_instructions: null,
      //       end_location: {
      //         lat: 104.1625808,
      //         lng: 30.7022242,
      //       },
      //       maneuver: null,
      //       polyline: null,
      //       steps: [
      //         {
      //           duration: "1分钟",
      //           start_location: {
      //             lat: 104.1625808,
      //             lng: 30.7022242,
      //           },
      //           distance: '{"text":"1 米","value":0}',
      //           travel_mode: "WALKING",
      //           html_instructions: null,
      //           end_location: {
      //             lat: 104.1625808,
      //             lng: 30.7022242,
      //           },
      //           maneuver: null,
      //           polyline: null,
      //           steps: null,
      //         },
      //       ],
      //     },
      //   ],
      // ],
      resultRouteLists: {
        ByBusTimes: [
          {
            planName:
              "成都11单条线路直达|二环西南交大站===>火车北站公交站东（下客）",
            originStation: {
              stationid: "10090514142424921000",
              routeid: "11",
              routename: "成都11",
              stationno: "20506",
              stationname: "二环西南交大站",
              stationtypename: "中间站",
              longitude: 104.052795,
              latitude: 30.696914,
              rundirection: "1",
              dualserialid: 21,
              sngserialid: 21,
              segmentid: "18237288",
              pointList: [
                {
                  lat: 30.696914,
                  lng: 104.052795,
                },
                {
                  lat: 0.0,
                  lng: 0.0,
                },
              ],
            },
            destStation: {
              stationid: "55090724155014560000",
              routeid: "11",
              routename: "成都11",
              stationno: "31083",
              stationname: "火车北站公交站东（下客）",
              stationtypename: "副站下客站",
              longitude: 104.070892,
              latitude: 30.695695,
              rundirection: "1",
              dualserialid: 23,
              sngserialid: 23,
              segmentid: "18237288",
              pointList: null,
            },
            planFlag: "直达",
            sumTravelTime: 87,
            busMileage: 2,
            busTime: 4,
            sumWalkTime: 78,
            sumWalkDistance: 5217,
            sumBusNum: 1,
            originWalkTime: 35,
            originWalkDistance: 2339,
            transferTime: 0,
            transferDistance: 0,
            nextTransferTime: 0,
            nextTransferDistance: 0,
            destWalkTime: 43,
            destWalkDistance: 2878,
            routes: [
              [
                {
                  stationid: "10090514142424921000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20506",
                  stationname: "二环西南交大站",
                  stationtypename: "中间站",
                  longitude: 104.052795,
                  latitude: 30.696914,
                  rundirection: "1",
                  dualserialid: 21,
                  sngserialid: 21,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142816062000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20508",
                  stationname: "二环商贸大道口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 67,
                  sngserialid: 22,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.695695,
                      lng: 104.070892,
                    },
                  ],
                },
                {
                  stationid: "55090724155014560000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "31083",
                  stationname: "火车北站公交站东（下客）",
                  stationtypename: "副站下客站",
                  longitude: 104.070892,
                  latitude: 30.695695,
                  rundirection: "1",
                  dualserialid: 23,
                  sngserialid: 23,
                  segmentid: "18237288",
                  pointList: null,
                },
              ],
            ],
          },
          {
            planName:
              "成都11单条线路直达|营门口北站===>火车北站公交站东（下客）",
            originStation: {
              stationid: "10090514130409296000",
              routeid: "11",
              routename: "成都11",
              stationno: "20503",
              stationname: "营门口北站",
              stationtypename: "中间站",
              longitude: 104.039733,
              latitude: 30.694406,
              rundirection: "1",
              dualserialid: 19,
              sngserialid: 19,
              segmentid: "18237288",
              pointList: [
                {
                  lat: 30.694406,
                  lng: 104.039733,
                },
                {
                  lat: 0.0,
                  lng: 0.0,
                },
              ],
            },
            destStation: {
              stationid: "55090724155014560000",
              routeid: "11",
              routename: "成都11",
              stationno: "31083",
              stationname: "火车北站公交站东（下客）",
              stationtypename: "副站下客站",
              longitude: 104.070892,
              latitude: 30.695695,
              rundirection: "1",
              dualserialid: 23,
              sngserialid: 23,
              segmentid: "18237288",
              pointList: null,
            },
            planFlag: "直达",
            sumTravelTime: 91,
            busMileage: 4,
            busTime: 8,
            sumWalkTime: 78,
            sumWalkDistance: 5238,
            sumBusNum: 1,
            originWalkTime: 35,
            originWalkDistance: 2360,
            transferTime: 0,
            transferDistance: 0,
            nextTransferTime: 0,
            nextTransferDistance: 0,
            destWalkTime: 43,
            destWalkDistance: 2878,
            routes: [
              [
                {
                  stationid: "10090514130409296000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20503",
                  stationname: "营门口北站",
                  stationtypename: "中间站",
                  longitude: 104.039733,
                  latitude: 30.694406,
                  rundirection: "1",
                  dualserialid: 19,
                  sngserialid: 19,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.694406,
                      lng: 104.039733,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142240453000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20505",
                  stationname: "二环交大路口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 20,
                  sngserialid: 20,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                  ],
                },
                {
                  stationid: "10090514142424921000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20506",
                  stationname: "二环西南交大站",
                  stationtypename: "中间站",
                  longitude: 104.052795,
                  latitude: 30.696914,
                  rundirection: "1",
                  dualserialid: 21,
                  sngserialid: 21,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142816062000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20508",
                  stationname: "二环商贸大道口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 67,
                  sngserialid: 22,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.695695,
                      lng: 104.070892,
                    },
                  ],
                },
                {
                  stationid: "55090724155014560000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "31083",
                  stationname: "火车北站公交站东（下客）",
                  stationtypename: "副站下客站",
                  longitude: 104.070892,
                  latitude: 30.695695,
                  rundirection: "1",
                  dualserialid: 23,
                  sngserialid: 23,
                  segmentid: "18237288",
                  pointList: null,
                },
              ],
            ],
          },
          {
            planName:
              "成都11单条线路直达|营门口立交桥东站===>火车北站公交站东（下客）",
            originStation: {
              stationid: "10090514111632734000",
              routeid: "11",
              routename: "成都11",
              stationno: "20428",
              stationname: "营门口立交桥东站",
              stationtypename: "中间站",
              longitude: 104.03889,
              latitude: 30.68872,
              rundirection: "1",
              dualserialid: 18,
              sngserialid: 18,
              segmentid: "18237288",
              pointList: [
                {
                  lat: 30.68872,
                  lng: 104.03889,
                },
                {
                  lat: 30.694406,
                  lng: 104.039733,
                },
              ],
            },
            destStation: {
              stationid: "55090724155014560000",
              routeid: "11",
              routename: "成都11",
              stationno: "31083",
              stationname: "火车北站公交站东（下客）",
              stationtypename: "副站下客站",
              longitude: 104.070892,
              latitude: 30.695695,
              rundirection: "1",
              dualserialid: 23,
              sngserialid: 23,
              segmentid: "18237288",
              pointList: null,
            },
            planFlag: "直达",
            sumTravelTime: 103,
            busMileage: 5,
            busTime: 10,
            sumWalkTime: 88,
            sumWalkDistance: 5873,
            sumBusNum: 1,
            originWalkTime: 45,
            originWalkDistance: 2995,
            transferTime: 0,
            transferDistance: 0,
            nextTransferTime: 0,
            nextTransferDistance: 0,
            destWalkTime: 43,
            destWalkDistance: 2878,
            routes: [
              [
                {
                  stationid: "10090514111632734000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20428",
                  stationname: "营门口立交桥东站",
                  stationtypename: "中间站",
                  longitude: 104.03889,
                  latitude: 30.68872,
                  rundirection: "1",
                  dualserialid: 18,
                  sngserialid: 18,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.68872,
                      lng: 104.03889,
                    },
                    {
                      lat: 30.694406,
                      lng: 104.039733,
                    },
                  ],
                },
                {
                  stationid: "10090514130409296000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20503",
                  stationname: "营门口北站",
                  stationtypename: "中间站",
                  longitude: 104.039733,
                  latitude: 30.694406,
                  rundirection: "1",
                  dualserialid: 19,
                  sngserialid: 19,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.694406,
                      lng: 104.039733,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142240453000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20505",
                  stationname: "二环交大路口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 20,
                  sngserialid: 20,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                  ],
                },
                {
                  stationid: "10090514142424921000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20506",
                  stationname: "二环西南交大站",
                  stationtypename: "中间站",
                  longitude: 104.052795,
                  latitude: 30.696914,
                  rundirection: "1",
                  dualserialid: 21,
                  sngserialid: 21,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142816062000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20508",
                  stationname: "二环商贸大道口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 67,
                  sngserialid: 22,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.695695,
                      lng: 104.070892,
                    },
                  ],
                },
                {
                  stationid: "55090724155014560000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "31083",
                  stationname: "火车北站公交站东（下客）",
                  stationtypename: "副站下客站",
                  longitude: 104.070892,
                  latitude: 30.695695,
                  rundirection: "1",
                  dualserialid: 23,
                  sngserialid: 23,
                  segmentid: "18237288",
                  pointList: null,
                },
              ],
            ],
          },
        ],
        ByTravelTime: [
          {
            planName:
              "成都11单条线路直达|二环西南交大站===>火车北站公交站东（下客）",
            originStation: {
              stationid: "10090514142424921000",
              routeid: "11",
              routename: "成都11",
              stationno: "20506",
              stationname: "二环西南交大站",
              stationtypename: "中间站",
              longitude: 104.052795,
              latitude: 30.696914,
              rundirection: "1",
              dualserialid: 21,
              sngserialid: 21,
              segmentid: "18237288",
              pointList: [
                {
                  lat: 30.696914,
                  lng: 104.052795,
                },
                {
                  lat: 0.0,
                  lng: 0.0,
                },
              ],
            },
            destStation: {
              stationid: "55090724155014560000",
              routeid: "11",
              routename: "成都11",
              stationno: "31083",
              stationname: "火车北站公交站东（下客）",
              stationtypename: "副站下客站",
              longitude: 104.070892,
              latitude: 30.695695,
              rundirection: "1",
              dualserialid: 23,
              sngserialid: 23,
              segmentid: "18237288",
              pointList: null,
            },
            planFlag: "直达",
            sumTravelTime: 87,
            busMileage: 2,
            busTime: 4,
            sumWalkTime: 78,
            sumWalkDistance: 5217,
            sumBusNum: 1,
            originWalkTime: 35,
            originWalkDistance: 2339,
            transferTime: 0,
            transferDistance: 0,
            nextTransferTime: 0,
            nextTransferDistance: 0,
            destWalkTime: 43,
            destWalkDistance: 2878,
            routes: [
              [
                {
                  stationid: "10090514142424921000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20506",
                  stationname: "二环西南交大站",
                  stationtypename: "中间站",
                  longitude: 104.052795,
                  latitude: 30.696914,
                  rundirection: "1",
                  dualserialid: 21,
                  sngserialid: 21,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142816062000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20508",
                  stationname: "二环商贸大道口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 67,
                  sngserialid: 22,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.695695,
                      lng: 104.070892,
                    },
                  ],
                },
                {
                  stationid: "55090724155014560000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "31083",
                  stationname: "火车北站公交站东（下客）",
                  stationtypename: "副站下客站",
                  longitude: 104.070892,
                  latitude: 30.695695,
                  rundirection: "1",
                  dualserialid: 23,
                  sngserialid: 23,
                  segmentid: "18237288",
                  pointList: null,
                },
              ],
            ],
          },
          {
            planName:
              "成都11单条线路直达|营门口北站===>火车北站公交站东（下客）",
            originStation: {
              stationid: "10090514130409296000",
              routeid: "11",
              routename: "成都11",
              stationno: "20503",
              stationname: "营门口北站",
              stationtypename: "中间站",
              longitude: 104.039733,
              latitude: 30.694406,
              rundirection: "1",
              dualserialid: 19,
              sngserialid: 19,
              segmentid: "18237288",
              pointList: [
                {
                  lat: 30.694406,
                  lng: 104.039733,
                },
                {
                  lat: 0.0,
                  lng: 0.0,
                },
              ],
            },
            destStation: {
              stationid: "55090724155014560000",
              routeid: "11",
              routename: "成都11",
              stationno: "31083",
              stationname: "火车北站公交站东（下客）",
              stationtypename: "副站下客站",
              longitude: 104.070892,
              latitude: 30.695695,
              rundirection: "1",
              dualserialid: 23,
              sngserialid: 23,
              segmentid: "18237288",
              pointList: null,
            },
            planFlag: "直达",
            sumTravelTime: 91,
            busMileage: 4,
            busTime: 8,
            sumWalkTime: 78,
            sumWalkDistance: 5238,
            sumBusNum: 1,
            originWalkTime: 35,
            originWalkDistance: 2360,
            transferTime: 0,
            transferDistance: 0,
            nextTransferTime: 0,
            nextTransferDistance: 0,
            destWalkTime: 43,
            destWalkDistance: 2878,
            routes: [
              [
                {
                  stationid: "10090514130409296000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20503",
                  stationname: "营门口北站",
                  stationtypename: "中间站",
                  longitude: 104.039733,
                  latitude: 30.694406,
                  rundirection: "1",
                  dualserialid: 19,
                  sngserialid: 19,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.694406,
                      lng: 104.039733,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142240453000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20505",
                  stationname: "二环交大路口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 20,
                  sngserialid: 20,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                  ],
                },
                {
                  stationid: "10090514142424921000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20506",
                  stationname: "二环西南交大站",
                  stationtypename: "中间站",
                  longitude: 104.052795,
                  latitude: 30.696914,
                  rundirection: "1",
                  dualserialid: 21,
                  sngserialid: 21,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142816062000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20508",
                  stationname: "二环商贸大道口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 67,
                  sngserialid: 22,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.695695,
                      lng: 104.070892,
                    },
                  ],
                },
                {
                  stationid: "55090724155014560000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "31083",
                  stationname: "火车北站公交站东（下客）",
                  stationtypename: "副站下客站",
                  longitude: 104.070892,
                  latitude: 30.695695,
                  rundirection: "1",
                  dualserialid: 23,
                  sngserialid: 23,
                  segmentid: "18237288",
                  pointList: null,
                },
              ],
            ],
          },
          {
            planName:
              "成都11单条线路直达|营门口立交桥东站===>火车北站公交站东（下客）",
            originStation: {
              stationid: "10090514111632734000",
              routeid: "11",
              routename: "成都11",
              stationno: "20428",
              stationname: "营门口立交桥东站",
              stationtypename: "中间站",
              longitude: 104.03889,
              latitude: 30.68872,
              rundirection: "1",
              dualserialid: 18,
              sngserialid: 18,
              segmentid: "18237288",
              pointList: [
                {
                  lat: 30.68872,
                  lng: 104.03889,
                },
                {
                  lat: 30.694406,
                  lng: 104.039733,
                },
              ],
            },
            destStation: {
              stationid: "55090724155014560000",
              routeid: "11",
              routename: "成都11",
              stationno: "31083",
              stationname: "火车北站公交站东（下客）",
              stationtypename: "副站下客站",
              longitude: 104.070892,
              latitude: 30.695695,
              rundirection: "1",
              dualserialid: 23,
              sngserialid: 23,
              segmentid: "18237288",
              pointList: null,
            },
            planFlag: "直达",
            sumTravelTime: 103,
            busMileage: 5,
            busTime: 10,
            sumWalkTime: 88,
            sumWalkDistance: 5873,
            sumBusNum: 1,
            originWalkTime: 45,
            originWalkDistance: 2995,
            transferTime: 0,
            transferDistance: 0,
            nextTransferTime: 0,
            nextTransferDistance: 0,
            destWalkTime: 43,
            destWalkDistance: 2878,
            routes: [
              [
                {
                  stationid: "10090514111632734000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20428",
                  stationname: "营门口立交桥东站",
                  stationtypename: "中间站",
                  longitude: 104.03889,
                  latitude: 30.68872,
                  rundirection: "1",
                  dualserialid: 18,
                  sngserialid: 18,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.68872,
                      lng: 104.03889,
                    },
                    {
                      lat: 30.694406,
                      lng: 104.039733,
                    },
                  ],
                },
                {
                  stationid: "10090514130409296000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20503",
                  stationname: "营门口北站",
                  stationtypename: "中间站",
                  longitude: 104.039733,
                  latitude: 30.694406,
                  rundirection: "1",
                  dualserialid: 19,
                  sngserialid: 19,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.694406,
                      lng: 104.039733,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142240453000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20505",
                  stationname: "二环交大路口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 20,
                  sngserialid: 20,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                  ],
                },
                {
                  stationid: "10090514142424921000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20506",
                  stationname: "二环西南交大站",
                  stationtypename: "中间站",
                  longitude: 104.052795,
                  latitude: 30.696914,
                  rundirection: "1",
                  dualserialid: 21,
                  sngserialid: 21,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142816062000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20508",
                  stationname: "二环商贸大道口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 67,
                  sngserialid: 22,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.695695,
                      lng: 104.070892,
                    },
                  ],
                },
                {
                  stationid: "55090724155014560000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "31083",
                  stationname: "火车北站公交站东（下客）",
                  stationtypename: "副站下客站",
                  longitude: 104.070892,
                  latitude: 30.695695,
                  rundirection: "1",
                  dualserialid: 23,
                  sngserialid: 23,
                  segmentid: "18237288",
                  pointList: null,
                },
              ],
            ],
          },
        ],
        ByWalkDistance: [
          {
            planName:
              "成都11单条线路直达|二环西南交大站===>火车北站公交站东（下客）",
            originStation: {
              stationid: "10090514142424921000",
              routeid: "11",
              routename: "成都11",
              stationno: "20506",
              stationname: "二环西南交大站",
              stationtypename: "中间站",
              longitude: 104.052795,
              latitude: 30.696914,
              rundirection: "1",
              dualserialid: 21,
              sngserialid: 21,
              segmentid: "18237288",
              pointList: [
                {
                  lat: 30.696914,
                  lng: 104.052795,
                },
                {
                  lat: 0.0,
                  lng: 0.0,
                },
              ],
            },
            destStation: {
              stationid: "55090724155014560000",
              routeid: "11",
              routename: "成都11",
              stationno: "31083",
              stationname: "火车北站公交站东（下客）",
              stationtypename: "副站下客站",
              longitude: 104.070892,
              latitude: 30.695695,
              rundirection: "1",
              dualserialid: 23,
              sngserialid: 23,
              segmentid: "18237288",
              pointList: null,
            },
            planFlag: "直达",
            sumTravelTime: 87,
            busMileage: 2,
            busTime: 4,
            sumWalkTime: 78,
            sumWalkDistance: 5217,
            sumBusNum: 1,
            originWalkTime: 35,
            originWalkDistance: 2339,
            transferTime: 0,
            transferDistance: 0,
            nextTransferTime: 0,
            nextTransferDistance: 0,
            destWalkTime: 43,
            destWalkDistance: 2878,
            routes: [
              [
                {
                  stationid: "10090514142424921000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20506",
                  stationname: "二环西南交大站",
                  stationtypename: "中间站",
                  longitude: 104.052795,
                  latitude: 30.696914,
                  rundirection: "1",
                  dualserialid: 21,
                  sngserialid: 21,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142816062000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20508",
                  stationname: "二环商贸大道口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 67,
                  sngserialid: 22,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.695695,
                      lng: 104.070892,
                    },
                  ],
                },
                {
                  stationid: "55090724155014560000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "31083",
                  stationname: "火车北站公交站东（下客）",
                  stationtypename: "副站下客站",
                  longitude: 104.070892,
                  latitude: 30.695695,
                  rundirection: "1",
                  dualserialid: 23,
                  sngserialid: 23,
                  segmentid: "18237288",
                  pointList: null,
                },
              ],
            ],
          },
          {
            planName:
              "成都11单条线路直达|营门口立交桥东站===>火车北站公交站东（下客）",
            originStation: {
              stationid: "10090514111632734000",
              routeid: "11",
              routename: "成都11",
              stationno: "20428",
              stationname: "营门口立交桥东站",
              stationtypename: "中间站",
              longitude: 104.03889,
              latitude: 30.68872,
              rundirection: "1",
              dualserialid: 18,
              sngserialid: 18,
              segmentid: "18237288",
              pointList: [
                {
                  lat: 30.68872,
                  lng: 104.03889,
                },
                {
                  lat: 30.694406,
                  lng: 104.039733,
                },
              ],
            },
            destStation: {
              stationid: "55090724155014560000",
              routeid: "11",
              routename: "成都11",
              stationno: "31083",
              stationname: "火车北站公交站东（下客）",
              stationtypename: "副站下客站",
              longitude: 104.070892,
              latitude: 30.695695,
              rundirection: "1",
              dualserialid: 23,
              sngserialid: 23,
              segmentid: "18237288",
              pointList: null,
            },
            planFlag: "直达",
            sumTravelTime: 103,
            busMileage: 5,
            busTime: 10,
            sumWalkTime: 88,
            sumWalkDistance: 5873,
            sumBusNum: 1,
            originWalkTime: 45,
            originWalkDistance: 2995,
            transferTime: 0,
            transferDistance: 0,
            nextTransferTime: 0,
            nextTransferDistance: 0,
            destWalkTime: 43,
            destWalkDistance: 2878,
            routes: [
              [
                {
                  stationid: "10090514111632734000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20428",
                  stationname: "营门口立交桥东站",
                  stationtypename: "中间站",
                  longitude: 104.03889,
                  latitude: 30.68872,
                  rundirection: "1",
                  dualserialid: 18,
                  sngserialid: 18,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.68872,
                      lng: 104.03889,
                    },
                    {
                      lat: 30.694406,
                      lng: 104.039733,
                    },
                  ],
                },
                {
                  stationid: "10090514130409296000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20503",
                  stationname: "营门口北站",
                  stationtypename: "中间站",
                  longitude: 104.039733,
                  latitude: 30.694406,
                  rundirection: "1",
                  dualserialid: 19,
                  sngserialid: 19,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.694406,
                      lng: 104.039733,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142240453000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20505",
                  stationname: "二环交大路口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 20,
                  sngserialid: 20,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                  ],
                },
                {
                  stationid: "10090514142424921000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20506",
                  stationname: "二环西南交大站",
                  stationtypename: "中间站",
                  longitude: 104.052795,
                  latitude: 30.696914,
                  rundirection: "1",
                  dualserialid: 21,
                  sngserialid: 21,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142816062000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20508",
                  stationname: "二环商贸大道口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 67,
                  sngserialid: 22,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.695695,
                      lng: 104.070892,
                    },
                  ],
                },
                {
                  stationid: "55090724155014560000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "31083",
                  stationname: "火车北站公交站东（下客）",
                  stationtypename: "副站下客站",
                  longitude: 104.070892,
                  latitude: 30.695695,
                  rundirection: "1",
                  dualserialid: 23,
                  sngserialid: 23,
                  segmentid: "18237288",
                  pointList: null,
                },
              ],
            ],
          },
          {
            planName: "成都11步行换乘线路030601|营门口北站===>白马寺站",
            originStation: {
              stationid: "10090514130409296000",
              routeid: "11",
              routename: "成都11",
              stationno: "20503",
              stationname: "营门口北站",
              stationtypename: "中间站",
              longitude: 104.039733,
              latitude: 30.694406,
              rundirection: "1",
              dualserialid: 19,
              sngserialid: 19,
              segmentid: "18237288",
              pointList: [
                {
                  lat: 30.694406,
                  lng: 104.039733,
                },
                {
                  lat: 0.0,
                  lng: 0.0,
                },
              ],
            },
            destStation: {
              stationid: "55120510095014561104",
              routeid: "200306",
              routename: "线路030601",
              stationno: "20564",
              stationname: "白马寺站",
              stationtypename: "中间站",
              longitude: 104.06356,
              latitude: 30.68974,
              rundirection: "2",
              dualserialid: 10,
              sngserialid: 24,
              segmentid: "18240710",
              pointList: null,
            },
            planFlag: "步行换乘",
            sumTravelTime: 165,
            busMileage: 24,
            busTime: 48,
            sumWalkTime: 107,
            sumWalkDistance: 7166,
            sumBusNum: 2,
            originWalkTime: 35,
            originWalkDistance: 2360,
            transferTime: 14,
            transferDistance: 964,
            nextTransferTime: 0,
            nextTransferDistance: 0,
            destWalkTime: 58,
            destWalkDistance: 3842,
            routes: [
              [
                {
                  stationid: "10090514130409296000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20503",
                  stationname: "营门口北站",
                  stationtypename: "中间站",
                  longitude: 104.039733,
                  latitude: 30.694406,
                  rundirection: "1",
                  dualserialid: 19,
                  sngserialid: 19,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.694406,
                      lng: 104.039733,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142240453000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20505",
                  stationname: "二环交大路口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 20,
                  sngserialid: 20,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                  ],
                },
                {
                  stationid: "10090514142424921000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20506",
                  stationname: "二环西南交大站",
                  stationtypename: "中间站",
                  longitude: 104.052795,
                  latitude: 30.696914,
                  rundirection: "1",
                  dualserialid: 21,
                  sngserialid: 21,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 30.696914,
                      lng: 104.052795,
                    },
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                  ],
                },
                {
                  stationid: "10090514142816062000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "20508",
                  stationname: "二环商贸大道口站",
                  stationtypename: "中间站",
                  longitude: 0,
                  latitude: 0,
                  rundirection: "1",
                  dualserialid: 67,
                  sngserialid: 22,
                  segmentid: "18237288",
                  pointList: [
                    {
                      lat: 0.0,
                      lng: 0.0,
                    },
                    {
                      lat: 30.695695,
                      lng: 104.070892,
                    },
                  ],
                },
                {
                  stationid: "55090724155014560000",
                  routeid: "11",
                  routename: "成都11",
                  stationno: "31083",
                  stationname: "火车北站公交站东（下客）",
                  stationtypename: "副站下客站",
                  longitude: 104.070892,
                  latitude: 30.695695,
                  rundirection: "1",
                  dualserialid: 23,
                  sngserialid: 23,
                  segmentid: "18237288",
                  pointList: null,
                },
              ],
              [
                {
                  stationid: "55151202000000000539",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "000539",
                  stationname: "滨海新村",
                  stationtypename: "中间站",
                  longitude: 120.053069,
                  latitude: 35.880214,
                  rundirection: "2",
                  dualserialid: 16,
                  sngserialid: 4,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 35.880214,
                      lng: 120.053069,
                    },
                    {
                      lat: 30.61445,
                      lng: 104.071758,
                    },
                  ],
                },
                {
                  stationid: "55090811143156294000",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "31095",
                  stationname: "长寿路东站",
                  stationtypename: "中间站",
                  longitude: 104.071758,
                  latitude: 30.61445,
                  rundirection: "2",
                  dualserialid: 19,
                  sngserialid: 5,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.61445,
                      lng: 104.071758,
                    },
                    {
                      lat: 30.84629,
                      lng: 103.987131,
                    },
                  ],
                },
                {
                  stationid: "55130506133527230340",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "51613",
                  stationname: "安全村站",
                  stationtypename: "中间站",
                  longitude: 103.987131,
                  latitude: 30.84629,
                  rundirection: "2",
                  dualserialid: 4,
                  sngserialid: 6,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.84629,
                      lng: 103.987131,
                    },
                    {
                      lat: 30.64352,
                      lng: 103.96001,
                    },
                  ],
                },
                {
                  stationid: "55101026141022734336",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "41297",
                  stationname: "白佛桥站",
                  stationtypename: "中间站",
                  longitude: 103.96001,
                  latitude: 30.64352,
                  rundirection: "2",
                  dualserialid: 9,
                  sngserialid: 7,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.64352,
                      lng: 103.96001,
                    },
                    {
                      lat: 36.00152,
                      lng: 119.890796,
                    },
                  ],
                },
                {
                  stationid: "55151202000000001124",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "001124",
                  stationname: "宝山镇政府",
                  stationtypename: "中间站",
                  longitude: 119.890796,
                  latitude: 36.00152,
                  rundirection: "2",
                  dualserialid: 15,
                  sngserialid: 8,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 36.00152,
                      lng: 119.890796,
                    },
                    {
                      lat: 30.87408,
                      lng: 104.259711,
                    },
                  ],
                },
                {
                  stationid: "55160108112908519013",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "58246",
                  stationname: "八二八站",
                  stationtypename: "中间站",
                  longitude: 104.259711,
                  latitude: 30.87408,
                  rundirection: "2",
                  dualserialid: 7,
                  sngserialid: 9,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.87408,
                      lng: 104.259711,
                    },
                    {
                      lat: 35.966769,
                      lng: 120.23988,
                    },
                  ],
                },
                {
                  stationid: "1708020050",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "001684",
                  stationname: "北船职工公寓",
                  stationtypename: "中间站",
                  longitude: 120.23988,
                  latitude: 35.966769,
                  rundirection: "2",
                  dualserialid: 11,
                  sngserialid: 10,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 35.966769,
                      lng: 120.23988,
                    },
                    {
                      lat: 30.61705,
                      lng: 104.09059,
                    },
                  ],
                },
                {
                  stationid: "10090526090758828000",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "30306",
                  stationname: "翡翠城站",
                  stationtypename: "中间站",
                  longitude: 104.09059,
                  latitude: 30.61705,
                  rundirection: "2",
                  dualserialid: 20,
                  sngserialid: 11,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.61705,
                      lng: 104.09059,
                    },
                    {
                      lat: 30.571938,
                      lng: 104.129055,
                    },
                  ],
                },
                {
                  stationid: "55160706100042870012",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "42522",
                  stationname: "白鹭湾站",
                  stationtypename: "中间站",
                  longitude: 104.129055,
                  latitude: 30.571938,
                  rundirection: "2",
                  dualserialid: 12,
                  sngserialid: 12,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.571938,
                      lng: 104.129055,
                    },
                    {
                      lat: 36.202568,
                      lng: 120.527509,
                    },
                  ],
                },
                {
                  stationid: "04200316141824689000",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "16668",
                  stationname: "测试站点031601",
                  stationtypename: "中间站",
                  longitude: 120.527509,
                  latitude: 36.202568,
                  rundirection: "2",
                  dualserialid: 22,
                  sngserialid: 13,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 36.202568,
                      lng: 120.527509,
                    },
                    {
                      lat: 30.925083,
                      lng: 103.838272,
                    },
                  ],
                },
                {
                  stationid: "55130506101822792306",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "51588",
                  stationname: "竹林村站",
                  stationtypename: "中间站",
                  longitude: 103.838272,
                  latitude: 30.925083,
                  rundirection: "2",
                  dualserialid: 35,
                  sngserialid: 14,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.925083,
                      lng: 103.838272,
                    },
                    {
                      lat: 35.961807,
                      lng: 120.181719,
                    },
                  ],
                },
                {
                  stationid: "55151202000000000238",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "000238",
                  stationname: "中康国际",
                  stationtypename: "中间站",
                  longitude: 120.181719,
                  latitude: 35.961807,
                  rundirection: "2",
                  dualserialid: 37,
                  sngserialid: 15,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 35.961807,
                      lng: 120.181719,
                    },
                    {
                      lat: 30.54704,
                      lng: 104.09875,
                    },
                  ],
                },
                {
                  stationid: "55101013171540468215",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "50572",
                  stationname: "中和镇站",
                  stationtypename: "中间站",
                  longitude: 104.09875,
                  latitude: 30.54704,
                  rundirection: "2",
                  dualserialid: 36,
                  sngserialid: 16,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.54704,
                      lng: 104.09875,
                    },
                    {
                      lat: 35.968045,
                      lng: 120.177848,
                    },
                  ],
                },
                {
                  stationid: "55151202000000000345",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "000345",
                  stationname: "中国人保财险",
                  stationtypename: "中间站",
                  longitude: 120.177848,
                  latitude: 35.968045,
                  rundirection: "2",
                  dualserialid: 38,
                  sngserialid: 17,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 35.968045,
                      lng: 120.177848,
                    },
                    {
                      lat: 35.818247,
                      lng: 120.00003,
                    },
                  ],
                },
                {
                  stationid: "1708020240",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "001874",
                  stationname: "职教中心",
                  stationtypename: "中间站",
                  longitude: 120.00003,
                  latitude: 35.818247,
                  rundirection: "2",
                  dualserialid: 40,
                  sngserialid: 18,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 35.818247,
                      lng: 120.00003,
                    },
                    {
                      lat: 35.972497,
                      lng: 120.250083,
                    },
                  ],
                },
                {
                  stationid: "55151202000000000125",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "000125",
                  stationname: "中国船柴",
                  stationtypename: "中间站",
                  longitude: 120.250083,
                  latitude: 35.972497,
                  rundirection: "2",
                  dualserialid: 39,
                  sngserialid: 19,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 35.972497,
                      lng: 120.250083,
                    },
                    {
                      lat: 30.65121,
                      lng: 104.02453,
                    },
                  ],
                },
                {
                  stationid: "10090515111946953000",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "20356",
                  stationname: "紫藤路站",
                  stationtypename: "中间站",
                  longitude: 104.02453,
                  latitude: 30.65121,
                  rundirection: "2",
                  dualserialid: 31,
                  sngserialid: 20,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.65121,
                      lng: 104.02453,
                    },
                    {
                      lat: 30.842615,
                      lng: 103.7735,
                    },
                  ],
                },
                {
                  stationid: "55130514144556868621",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "51532",
                  stationname: "子云站",
                  stationtypename: "中间站",
                  longitude: 103.7735,
                  latitude: 30.842615,
                  rundirection: "2",
                  dualserialid: 32,
                  sngserialid: 21,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.842615,
                      lng: 103.7735,
                    },
                    {
                      lat: 30.74007,
                      lng: 103.95369,
                    },
                  ],
                },
                {
                  stationid: "55091129233946125000",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "41052",
                  stationname: "中医药大学站",
                  stationtypename: "中间站",
                  longitude: 103.95369,
                  latitude: 30.74007,
                  rundirection: "2",
                  dualserialid: 33,
                  sngserialid: 22,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 30.74007,
                      lng: 103.95369,
                    },
                    {
                      lat: 35.876774,
                      lng: 119.978515,
                    },
                  ],
                },
                {
                  stationid: "55151202000000000509",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "000509",
                  stationname: "珠山路",
                  stationtypename: "中间站",
                  longitude: 119.978515,
                  latitude: 35.876774,
                  rundirection: "2",
                  dualserialid: 34,
                  sngserialid: 23,
                  segmentid: "18240710",
                  pointList: [
                    {
                      lat: 35.876774,
                      lng: 119.978515,
                    },
                    {
                      lat: 30.68974,
                      lng: 104.06356,
                    },
                  ],
                },
                {
                  stationid: "55120510095014561104",
                  routeid: "200306",
                  routename: "线路030601",
                  stationno: "20564",
                  stationname: "白马寺站",
                  stationtypename: "中间站",
                  longitude: 104.06356,
                  latitude: 30.68974,
                  rundirection: "2",
                  dualserialid: 10,
                  sngserialid: 24,
                  segmentid: "18240710",
                  pointList: null,
                },
              ],
            ],
          },
        ],
      },
      ByBusTimesList: [],
      ByTravelTimeList: [],
      ByWalkDistanceList: [],
      isSchemeList: true,

      isShowStation: false,
      points: [],
      transferStationLists: [],
      isRouteList: false,
      routeNameList: [],
      lineLayer: null, // 线图层
      pointLayer: null, // 点图层
      pointLayer1: null, // 点图层
      stationLength: 150,
      allTripLists: [],
      page: 1,
      state: "",
      setSize: 1,
      setTheme: "",
      endAddress: "",
      startPointLayer: null,
      endPointLayer: null,
      tempArr: [],
      transferPoint: [],
      transferPointLayer: null,
      pointFeature: [],
      lineFeature: [],
      planDel:{}
    };
  },
  computed: {
    ...mapState(["lnglat", "changeSize", "changeTheme"]),
  },
  watch: {
    lnglat() {
      this.resultRouteLists = [];
      this.isRouteList = false;
      this.tempArr = [];
      this.inputStart = "";
      this.inputEnd = "";
      this.startlngAndLat = "";
      this.endlngAndLat = "";

      if (this.transferPointSource) {
        this.transferPointSource.removeFeature(this.pointFeature);
        this.map.removeLayer(this.transferPointLayer); //清除换乘位置
      }
      if (this.startPointSource) {
        this.startPointSource.removeFeature(this.startPointFeature);
        this.map.removeLayer(this.startPointLayer); //清除起始位置
      }
      if (this.endPointSource) {
        this.endPointSource.removeFeature(this.endPointFeature);
        this.map.removeLayer(this.endPointLayer); //清除结束位置
      }

      if (this.linesSource) {
        this.tempArr = [];
        this.linesSource.clear();
      }

      this.initMap();
    },
    changeSize: {
      handler(newVal) {
        this.setSize = newVal;
      },
    },
    changeTheme(newVal) {
      this.setTheme = newVal;
    },
  },
  mounted() {
    // 文字大小
    this.setSize = this.$store.state.changeSize;
    // 网站风格
    this.setTheme = localStorage.getItem("setTheme")
      ? localStorage.getItem("setTheme")
      : 1;
    // 获取当前位置
    let p = {
      lng: this.$store.state.lnglat[0],
      lat: this.$store.state.lnglat[1],
    };
    this.startlngAndLat = p.lng + "," + p.lat;
    this.inputStart = "我的位置";
    this.initMap();
  },
  methods: {
    handleToDetail(item) {
      this.isSchemeList = false;
      console.log(this.isSchemeList )
      console.log("获取当前数据")
      console.log(item)
      this.planDel=item
    },
    handleBcak() {
      this.isSchemeList = true;
    },
    initMap() {
      const origin = new google.maps.LatLng(30.7378317, 104.0820252);
      const map = new google.maps.Map(document.getElementById("map"), {
        zoom: window.MAPSETTINGS.DEFAULTZOOM,
        center: origin,
      });
      this.origin = origin;
      this.map = map;
      var rendererOptions = {
        draggable: true,
        polylineOptions: {
          strokeColor: "red",
        },
      };
      this.directionsService = new google.maps.DirectionsService();
      this.directionsRenderer = new google.maps.DirectionsRenderer(
        rendererOptions
      );
      this.directionsRenderer.setMap(map);
      this.placesService = new google.maps.places.PlacesService(map);
      this.infowindow = new google.maps.InfoWindow();
      this.infowindowContent = document.getElementById("infowindow-content");
      this.infowindow.setContent(this.infowindowContent);
      this.map.addListener("click", this.handleClick);
    },
    handleClick(event) {
      console.log("You clicked on: " + event.latLng);
      this.clickLngAndLat = event.latLng;
      if (this.isIconMouseEvent(event)) {
        event.stop();
        if (event.placeId) {
          this.getPlaceInformation(event.placeId, event.latLng);
        }
      }
    },

    isIconMouseEvent(e) {
      return "placeId" in e;
    },
    getPlaceInformation(placeId, latlng) {
      const that = this;
      let address = JSON.parse(JSON.stringify(latlng, null, 2));
      this.placesService.getDetails({ placeId: placeId }, (place, status) => {
        if (
          status === "OK" &&
          place &&
          place.geometry &&
          place.geometry.location
        ) {
          let tempLnglat = `${address.lng},${address.lat}`;

          if (that.inputStart && that.inputEnd) {
            that.inputStart = place.name;
            that.startlngAndLat = tempLnglat;
            that.inputEnd = "";
            that.endlngAndLat = "";
          } else {
            if (!that.inputStart) {
              that.inputStart = place.name;
              that.startlngAndLat = tempLnglat;
            } else {
              that.inputEnd = place.name;
              that.endlngAndLat = tempLnglat;
            }
          }
        }
      });
    },

    getzw1() {
      const input = document.getElementById("pac-endInput");
      const options = {
        country: ["us", "pr", "vi", "gu", "mp"],
        fields: ["address_components", "geometry", "icon", "name"],
        strictBounds: false,
        types: ["establishment"],
      };
      const autocomplete = new google.maps.places.Autocomplete(input, options);
      autocomplete.addListener("place_changed", () => {
        const place = autocomplete.getPlace();
        let address = JSON.parse(
          JSON.stringify(place.geometry, null, 2)
        ).location;
        this.endlngAndLat = address.lng + "," + address.lat;
      });
    },
    // 获取输入的起始经纬度
    async handleStartAddress() {
      let address = await getGoogleLngAntLat(this.inputStart);
      this.startlngAndLat = `${address.lng},${address.lat}`;
      getzw("pac-startInput").then((res) => {
        this.startlngAndLat = res.lng + "," + res.lat;
      });
    },
    // 获取输入的结束经纬度
    async handleEndAddress() {
      let address = await getGoogleLngAntLat(this.inputStart);
      this.endlngAndLat = `${address.lng},${address.lat}`;
      getzw("pac-endInput").then((res) => {
        this.endlngAndLat = res.lng + "," + res.lat;
      });
    },
    // 搜索
    async getDistance() {
      // if (!this.inputStart) {
      //   this.$message.warning(this.$t("langName.langName55"));
      //   return;
      // }
      // if (!this.inputEnd) {
      //   this.$message.warning(this.$t("langName.langName56"));
      //   return;
      // }
      let params = {
        start: this.startlngAndLat,
        end: this.endlngAndLat,
      };
      this.isRouteList = true;
      // let params = {
      //   start: "-122.447,37.77",
      //   end: " -122.511,37.768",
      // };
      // let { status, data, message } = await postRoutePlanning(params);
      // if (status == 200) {
      //   if(data.length==0)return []
      // this.resultRouteLists = data[0];

      this.ByBusTimesList = this.resultRouteLists.ByBusTimes;
      this.ByTravelTimeList = this.resultRouteLists.ByTravelTime;
      this.ByWalkDistanceList = this.resultRouteLists.ByWalkDistance;
    },
    // 绘制开始位置、结束位置、换乘点
    drawSpot() {
      let startPoint = this.tempArr[0][0];
      let endPoint =
        this.tempArr[this.tempArr.length - 1][
          this.tempArr[this.tempArr.length - 1].length - 1
        ];
      const features = [
        {
          position: new google.maps.LatLng(startPoint[1], startPoint[0]),
        },
        {
          position: new google.maps.LatLng(endPoint[1], endPoint[0]),
        },
      ];
      const features1 = [];
      this.transferPoint
        .splice(0, this.transferPoint.length - 1)
        .forEach((item) => {
          let obj = {
            position: new google.maps.LatLng(
              item[item.length - 1][1],
              item[item.length - 1][0]
            ),
          };
          features1.push(obj);
        });

      // 绘制标记点--开始标记,结束标记,换乘标记
      for (let i = 0; i < features1.length; i++) {
        new google.maps.Marker({
          position: features1[i].position,
          icon: require("../assets/images/transfer.png"),
          map: this.map,
        });
      }
      console.log(features);
      new google.maps.Marker({
        position: features[0].position,
        icon: require("../assets/images/startpoint.png"),
        map: this.map,
      });

      new google.maps.Marker({
        position: features[1].position,
        icon: require("../assets/images/endPoint.png"),
        map: this.map,
      });

      let tempTransfer = [];
      this.pointFeature = [];

      this.tempArr.forEach((item, index) => {
        if (index % 2 != 0 && index != this.tempArr.length - 2) {
          tempTransfer.push(item[item.length - 1]);
        }
      });
    },
    // 绘制线路
    drawLine() {
      const flightPlanCoordinates = [];
      this.tempArr.forEach((item) => {
        item.forEach((i) => {
          let obj = { lat: i[1], lng: i[0] };
          flightPlanCoordinates.push(obj);
        });
      });
      //      const flightPlanCoordinates = [
      //   { lat: 37.772, lng: -122.214 },
      //   { lat: 21.291, lng: -157.821 },
      //   { lat: -18.142, lng: 178.431 },
      //   { lat: -27.467, lng: 153.027 },
      // ];
      const flightPath = new google.maps.Polyline({
        path: flightPlanCoordinates,
        geodesic: true,
        strokeColor: "#02B578",
        strokeOpacity: 1.0,
        strokeWeight: 6,
      });

      flightPath.setMap(this.map);
    },

    //地图相关操作(放大/缩小/复原)
    handleControl(name) {
      // let view = this.map.getView();
      switch (name) {
        case "enlarge":
          this.map.setZoom(this.map.getZoom() + 1);
          break;
        case "norrow":
          this.map.setZoom(this.map.getZoom() - 1);
          break;
        case "restore":
          this.map.setCenter({
            lat: this.$store.state.lnglat[1],
            lng: this.$store.state.lnglat[0],
          });
          this.map.setZoom(window.MAPSETTINGS.DEFAULTZOOM);
          break;
      }
    },
    // 前一行程
    handlePre() {
      this.page--;
      if (this.page < 0) {
        this.$message.error(this.$t("langName.langName53"));
        return;
      } else {
        this.inputStart = this.allTripLists[this.page].start; //获取起点地址
        this.inputEnd = this.allTripLists[this.page].end; //获取终点地址
        this.stationLength = this.allTripLists[this.page].stationLength; //乘坐的站数
        this.resultRouteLists = this.allTripLists[this.page].data; //线路规划数据
      }
    },
    // 后一行程
    handleNext() {
      this.page++;
      if (this.page >= this.allTripLists.length) {
        this.$message.error(this.$t("langName.langName54"));
        return;
      } else {
        this.inputStart = this.allTripLists[this.page].start; //获取起点地址
        this.inputEnd = this.allTripLists[this.page].end; //获取终点地址
        this.stationLength = this.allTripLists[this.page].stationLength; //乘坐的站数
        this.resultRouteLists = this.allTripLists[this.page].data; //线路规划数据
      }
    },
  },
};
</script>
<style lang="scss" scoped>
.usual .bus-stop-name {
  font-size: 14px;
}

.usual .bus-flag {
  font-size: 14px;
}

.large .bus-stop-name {
  font-size: 16px;
}

.large .bus-flag {
  font-size: 16px;
}

.el-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

[class*=" el-icon-"],
[class^="el-icon-"] {
  font-size: 25px;
  margin-bottom: 10px;
}

.mapOptions {
  width: 100%;
  height: 100px !important;
  background: #fff;
  margin-top: 20px;
  text-align: center;

  li {
    box-sizing: border-box;
    // width: 70px;
    padding: 10px 20px;
    height: 70px;
    margin-right: 30px;
  }
}

.aside-bus-info {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 380px;
  margin: 10px;
  text-align: left;
  .localInfo {
    padding: 12px;
    background: #fff;
    margin-bottom: 8px;

    .ellipse {
      width: 10px;
      height: 5px;
      border-radius: 50%;
      border: 5px solid #2cd9ff;
    }
  }

  .border-radius-20 {
    border-radius: 20px;
  }
  .h-100 {
    padding-top: 40px;
    height: calc(100vh - 120px) !important;
  }
  .route-planning-box {
    // display: flex;
    box-sizing: border-box;
    padding: 0 10px;
    height: 60vh;
    width: 100%;
    overflow: hidden;

    .left-route-planning::-webkit-scrollbar {
      display: none;
    }

    // 左侧站点信息
    .left-route-planning {
      box-sizing: border-box;
      width: 100%;
      height: 100%;
      // padding: 20px 20px 20px 30px;
      // overflow: auto;

      ul {
        margin-bottom: 10px;
        // &:last-child {
        //   .fz-12 {
        //     display: none;
        //   }
        // }
      }

      .blue-cicle {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 3px solid #2cd9ff;
        margin-left: 11px;
      }

      .bus-stop-name {
        display: flex;
        color: #616161;

        .stated-num {
          display: flex;
          flex: 1;
          // justify-content: space-between;
          box-sizing: border-box;
          margin-top: 30px;
        }

        .end-cicle {
          width: 10px;
          height: 10px;
          border: 3px solid #dadada;
          border-radius: 50%;
          margin-left: 11px;
        }

        .bus-line {
          width: 4px;
          height: 180px;
          margin-top: -20px;
          background: #1d1d1d;
          border-radius: 3px;
        }

        img {
          width: 10px;
        }
      }

      .bus-flag {
        width: 40px;
        height: 25px;
        line-height: 25px;
        text-align: center;

        background: #1d1d1d;
        color: #888888;
        border-radius: 5px;
      }
    }
  }
}

.car {
  position: relative;
}
.del {
  height: 100%;
  overflow: auto;
}
.del::-webkit-scrollbar {
  display: none;
}

.dotted-solid {
  width: 1px;
  height: 80px;
  margin-left: 17px;
  // margin-top: 25px;
  border-left: 3px dotted #d5d5d5;
}

.box-card {
  .current-local {
    display: flex;
    align-items: center;
  }

  .current-local::before {
    content: "";
    display: inline-block;
    height: 8px;
    width: 8px;
    background: #94d48b;
    border-radius: 50%;
    margin-right: 10px;
  }

  .three-dotted {
    width: 1px;
    height: 20px;
    border-right: 5px dotted #bebdbd;
    content: "";
    display: block;
    margin: 8px 0;
  }

  // .current-local::after {
  //   width: 1px;
  //   height: 20px;
  //   border-right: 5px dotted #bebdbd;
  //   content: "";
  //   display: block;
  //   margin: 8px 0;
  // }
  .destination {
    display: flex;
    align-items: center;
  }

  .destination::before {
    content: "";
    display: inline-block;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    margin-left: -5px;
    vertical-align: top;
    background: url("@/assets/images/address.png") no-repeat;
  }

  .progress {
    display: flex;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;

    .progress-item1 {
      width: 20%;
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
      background: #bbe4b4;
    }

    .progress-item2 {
      width: 10%;
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
      margin-left: -5px;
      background: #ff7c81;
    }

    .progress-item3 {
      width: 10%;
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
      margin-left: -5px;
      background: #6f96fa;
    }

    .progress-item4 {
      position: relative;
      z-index: 1;
      width: 20%;
      border-radius: 10px;
      margin-left: -5px;
      background: #84ce79;
    }

    .progress-item5 {
      width: 45%;
      margin-left: -5px;
      background: #bbe4b4;
    }
  }
}

.routeNameUl {
  width: 100%;

  li {
    padding-left: 20px;
    border-bottom: 1px solid #ccc;
    height: 3vw;
    line-height: 4vw;
  }
}

// 地图
.route-map {
  width: 100%;
  height: 860px;
  overflow: hidden;

  #map {
    width: 100%;
    height: 100%;
  }
}

.btn {
  cursor: pointer;
  margin-top: 10px;
  float: right;
}
.time-Style {
  font-size: 16px;
  font-weight: 600;
}
.route-style {
  margin: 10px 0;
  span {
    font-size: 14px;
    padding: 2px 4px;
    border: 1px solid #409eff;
    margin-right: 5px;
  }
}
.describe-style {
  padding: 4px 2px;
  background: #f4f2fa;
  border: 1px solid #ebe7f7;
}
.tr-item {
  padding: 20px 0;
  cursor: pointer;
  border-bottom: 1px solid #e9e6e6;
}
.tr-item:last-child {
  border-bottom: 1px solid transparent;
}
.tr-fixed {
  position: fixed;
  top: 80px;
  background: #fff;
  z-index: 999;
  width:350px;
}
.mt-100 {
  margin-top: 150px;
}
::v-deep .el-tabs__header {
  margin: 0;
}
</style>